package com.woniuxy01;

import java.util.Scanner;

public class Test07 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int sum=0,avg=0,score=0,count=0;
        for(int i=1;i<=5;i++){
            System.out.println("输入第"+i+"名同学的成绩");
            score=scanner.nextInt();
            sum+=score;
//            if(score>=90){
//                count++;
//            }
            if(score<90){
                continue;
            }
            count++;
        }
        avg=sum/5;
        System.out.println("总分:"+sum);
        System.out.println("平均分:"+avg);
        System.out.println("90分以上的人数:"+count);
    }
}
